<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户输入信息</title>
</head>

<body>
    <script>
        let number = prompt("请输入两个数(如：a b)");
        let a = parseInt(number.split(" ")[0]);
        let b = parseInt(number.split(" ")[1]);
        if (a > b) {
            alert("最大值为" + a);
        } else {
            alert("最大值为" + b);
        }

        // console.log(a);
    </script>
</body>

</html>